import React from 'react'
import "./index.css"
import Item from "./Item/index"

export default function List({todoList} ) {
  return (
    <ul className="todo-main">
  {
    todoList.map(item=>{
      //返回的是Item组件    批量传递Props
      return <Item key={item.id} {...item}/>
    })
  }
 
  </ul>
  )
}